import {_decorator, Component} from 'cc';
import {EventManager} from "db://assets/scripts/common/EventManager";
import {EventType} from "db://assets/scripts/common/EventType";

const {ccclass, property} = _decorator;

@ccclass('StartMenuController')
export class StartMenuController extends Component {
    start() {

    }

    update(deltaTime: number) {

    }

    /**
     * 开始游戏
     */
    public startGame() {
        EventManager.dispatchEvent(EventType.START_GAME);
    }
}

